package com.yunhe.policyfulfillment.authority.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @ClassName PolicyUserQueryCondition
 * @Description TODO
 * @Author HeTao
 * @Date 2021/9/17 16:43
 * @Version 1.0
 **/
@Data
@ApiModel("查询用户列表条件")
public class PolicyUserQueryCondition implements Serializable {

    private static final long serialVersionUID = 7954229917158038760L;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名",required = false)
    private String userName;

    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账号",required = false)
    private String userAccount;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号",required = false)
    private String phone;

    @ApiModelProperty(value = "状态 01 禁用 02恢复 03 锁定",required = false)
    private String activity;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id",required = false)
    private Long roleId;

    @ApiModelProperty(value = "组织id",required = false)
    private Integer orgId;

    @ApiModelProperty(value = "创建开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createStartTime;

    @ApiModelProperty(value = "创建结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createEndTime;

    @ApiModelProperty(value = "当前页",required = true)
    private int page;

    @ApiModelProperty(value = "页面条数",required = true)
    private int size;
}
